package com.example.cgpsys.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("order_item")
public class Order {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名
     */
    private String name;

    /**
     * 数量
     */
    private Integer number;

    private Double price;

    private Double groupPrice;

    private Double total;

    private Double groupTotal;

    private String payType;

    /**
     * 0-已支付，1-已发货，2-已完成，3-已退款
     */
    private Integer status;

    /**
     * 收货人电话
     */
    private String phoneNumber;

    /**
     * 收货人
     */
    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private String createTime;
}
